<?php
/**
 * @author Nguyễn Sơn Tùng <sontung.x305@gmail.com> <Y!M: terminator_nst> <Skype : joker.x305>
 * @version: 1.0
 * @copyright fteam.vn
 * Date: 30/01/2013
 * Time: 18:26
 */
 ?>
<div class="tabbable tabs-left">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#Content-A<?php echo $model->id; ?>" data-toggle="tab"><?php echo t('SEO','content'); ?></a></li>
        <li class=""><a href="#Content-B<?php echo $model->id; ?>" data-toggle="tab"><?php echo t('Content Detail','content'); ?></a></li>
        <li class=""><a href="#Content-C<?php echo $model->id; ?>" data-toggle="tab"><?php echo t('Publishing Options','content'); ?></a></li>
    </ul>
    <div class="tab-content">
        <div class="tab-pane active" id="Content-A<?php echo $model->id; ?>">

            <div class="row-fluid">
                <div class="span2 offset1">
                    <?php
                        echo CHtml::activeLabel($model,'sub_title',array('class'=>'relationLabel'));
                    ?>
                </div>
                <div class="span9">
                    <?php
                        echo CHtml::tag('div',array('class'=>'relationContent'),$model->sub_title);
                    ?>
                </div>
            </div>

            <div class="row-fluid">
                <div class="span2 offset1">
                    <?php
                        echo CHtml::activeLabel($model,'meta_keyword',array('class'=>'relationLabel'));
                    ?>
                </div>
                <div class="span9">
                    <?php
                        echo CHtml::tag('div',array('class'=>'relationContent'),$model->meta_keyword);
                    ?>
                </div>
            </div>

            <div class="row-fluid">
                <div class="span2 offset1">
                    <?php
                        echo CHtml::activeLabel($model,'meta_description',array('class'=>'relationLabel'));
                    ?>
                </div>
                <div class="span9">
                    <?php
                        echo CHtml::tag('div',array('class'=>'relationContent'),$model->meta_description);
                    ?>
                </div>
            </div>

            <div class="row-fluid">
                <div class="span2 offset1">
                    <?php
                        echo CHtml::activeLabel($model,'meta_robots',array('class'=>'relationLabel'));
                    ?>
                </div>
                <div class="span9">
                    <?php
                        echo CHtml::tag('div',array('class'=>'relationContent'),$model->meta_robots);
                    ?>
                </div>
            </div>

            <div class="row-fluid">
                <div class="span2 offset1">
                    <?php
                        echo CHtml::activeLabel($model,'meta_revisit_after',array('class'=>'relationLabel'));
                    ?>
                </div>
                <div class="span9">
                    <?php
                        echo CHtml::tag('div',array('class'=>'relationContent'),$model->meta_revisit_after);
                    ?>
                </div>
            </div>
        </div>
        <div class="tab-pane" id="Content-B<?php echo $model->id; ?>">
            <div class="row-fluid">
                <div class="span2 offset1">
                    <?php
                    echo CHtml::activeLabel($model,'description',array('class'=>'relationLabel'));
                    ?>
                </div>
                <div class="span9">
                    <?php
                    echo CHtml::tag('div',array(),$model->description);
                    ?>
                </div>
            </div>

            <div class="row-fluid">
                <div class="span2 offset1">
                    <?php
                    echo CHtml::activeLabel($model,'content',array('class'=>'relationLabel'));
                    ?>
                </div>
                <div class="span9">
                    <?php
                    echo CHtml::tag('div',array(),$model->content);
                    ?>
                </div>
            </div>
        </div>

        <div class="tab-pane" id="Content-C<?php echo $model->id; ?>">

            <div class="row-fluid">
                <div class="span6">

                    <div class="row-fluid">
                        <div class="span5 offset1">
                            <?php
                            echo CHtml::activeLabel($model,'author',array('class'=>'relationLabel'));
                            ?>
                        </div>
                        <div class="span6">
                            <?php
                            echo CHtml::tag('div',array('class'=>'relationContent'),$model->author);
                            ?>
                        </div>
                    </div>

                    <div class="row-fluid">
                        <div class="span5 offset1">
                            <?php
                            // echo CHtml::tag('label',array('class'=>'relationLabel'),$model->userCreate->getAttributeLabel('username'));
                            echo CHtml::activeLabel($model,'created_user_id',array('class'=>'relationLabel'));
                            ?>
                        </div>
                        <div class="span6">
                            <?php
                            echo CHtml::tag('div',array('class'=>'relationContent'),$model->userCreate->display_name.' ('.$model->userCreate->username.')');
                            ?>
                        </div>
                    </div>

                    <div class="row-fluid">
                        <div class="span5 offset1">
                            <?php
                            // echo CHtml::tag('label',array('class'=>'relationLabel'),$model->userCreate->getAttributeLabel('username'));
                            echo CHtml::activeLabel($model,'created_date',array('class'=>'relationLabel'));
                            ?>
                        </div>
                        <div class="span6">
                            <?php
                            echo CHtml::tag('div',array('class'=>'relationContent'),Content::renderTime($model->created_date,false));
                            ?>
                        </div>
                    </div>

                    <div class="row-fluid">
                        <div class="span5 offset1">
                            <?php
                            // echo CHtml::tag('label',array('class'=>'relationLabel'),$model->userCreate->getAttributeLabel('username'));
                            echo CHtml::activeLabel($model,'updated_user_id',array('class'=>'relationLabel'));
                            ?>
                        </div>
                        <div class="span6">
                            <?php
                            echo CHtml::tag('div',array('class'=>'relationContent'),$model->userUpdate->display_name.' ('.$model->userUpdate->username.')');
                            ?>
                        </div>
                    </div>

                    <div class="row-fluid">
                        <div class="span5 offset1">
                            <?php
                            // echo CHtml::tag('label',array('class'=>'relationLabel'),$model->userCreate->getAttributeLabel('username'));
                            echo CHtml::activeLabel($model,'updated_date',array('class'=>'relationLabel'));
                            ?>
                        </div>
                        <div class="span6">
                            <?php
                            echo CHtml::tag('div',array('class'=>'relationContent'),Content::renderTime($model->updated_date,false));
                            ?>
                        </div>
                    </div>
                </div>

                <div class="span6">
                    <div class="row-fluid">
                        <div class="span5 offset1">
                            <?php
                            // echo CHtml::tag('label',array('class'=>'relationLabel'),$model->userCreate->getAttributeLabel('username'));
                            echo CHtml::activeLabel($model,'activate_user_id',array('class'=>'relationLabel'));
                            ?>
                        </div>
                        <div class="span6">
                            <?php
                            echo CHtml::tag('div',array('class'=>'relationContent'),$model->userActive->display_name.' ('.$model->userActive->username.')');
                            ?>
                        </div>
                    </div>

                    <div class="row-fluid">
                        <div class="span5 offset1">
                            <?php
                            // echo CHtml::tag('label',array('class'=>'relationLabel'),$model->userCreate->getAttributeLabel('username'));
                            echo CHtml::activeLabel($model,'activate_date',array('class'=>'relationLabel'));
                            ?>
                        </div>
                        <div class="span6">
                            <?php
                            echo CHtml::tag('div',array('class'=>'relationContent'),Content::renderTime($model->activate_date,false));
                            ?>
                        </div>
                    </div>

                    <div class="row-fluid">
                        <div class="span5 offset1">
                            <?php
                            // echo CHtml::tag('label',array('class'=>'relationLabel'),$model->userCreate->getAttributeLabel('username'));
                            echo CHtml::activeLabel($model,'publishing_start',array('class'=>'relationLabel'));
                            ?>
                        </div>
                        <div class="span6">
                            <?php
                            echo CHtml::tag('div',array('class'=>'relationContent'),Content::renderTime($model->publishing_start,false));
                            ?>
                        </div>
                    </div>

                    <div class="row-fluid">
                        <div class="span5 offset1">
                            <?php
                            // echo CHtml::tag('label',array('class'=>'relationLabel'),$model->userCreate->getAttributeLabel('username'));
                            echo CHtml::activeLabel($model,'publishing_end',array('class'=>'relationLabel'));
                            ?>
                        </div>
                        <div class="span6">
                            <?php
                            echo CHtml::tag('div',array('class'=>'relationContent'),Content::renderTime($model->publishing_end,false));
                            ?>
                        </div>
                    </div>
                </div>
            </div>

        </div>

    </div>
</div>

